package com.pks.datacenter.entity.user;

import lombok.Data;
import lombok.EqualsAndHashCode;

import com.pks.util.coder.database.DBField;
import com.pks.util.coder.database.DBTable;
import com.pks.web.mybatis.entity.BasicEntity;

@Data
@EqualsAndHashCode(callSuper = true)
@DBTable(tags = "菜单" )
public class ModuleMenu extends BasicEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1210863765649109919L;
	
//	public static final int role_public = 0;	//公开
//	public static final int role_admin = 1;		//管理员
	
	@DBField(name = "pid" , comment = "上级菜单ID" )
	private Long pid;
	@DBField(name = "name" , comment = "菜单名称" , length = 200)
	private String name;
	@DBField(name = "path" , comment = "菜单路径" , length = 200)
	private String path;
	@DBField(name = "role" , comment = "菜单使用角色" , length = 4)
	private String role;	//用户角色    #1#  格式 包含角色即为有权限
	@DBField(name = "orders" , comment = "菜单排序号" , length = 11)
	private Integer orders;
	@DBField(name = "index_state" , comment = "是否在首页显示快捷" , length = 4)
	private Integer index_state ; //是否首页显示快捷
	@DBField(name = "iconfont" , comment = "首页快捷使用的图标")
	private String iconfont;
	
	
}
